package com.tledu.model;

public class AjaxResult<T> {
    //响应给前台的提示信息
    private String message;

    //代码标识
    private Integer code;

    //如果表示true表示登陆成功
    private Boolean flag;

    //使用泛型代表任意类型的对象
    private T t;

    public AjaxResult(String message, Integer code, Boolean flag, T t) {
        this.message = message;
        this.code = code;
        this.t = t;
        this.flag = flag;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
}
